#include "DVCREL1Data.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::FEM;

bool SG::DataStructure::FEM::operator==(const DVCREL1Data::TERMSData& val1,
                                        const DVCREL1Data::TERMSData& val2) {
  FIELD_COMPARE(m_DVID)
  FIELD_COMPARE(m_COEF)
  return true;
}

bool SG::DataStructure::FEM::operator==(const DVCREL1Data& val1,
                                        const DVCREL1Data& val2) {
  FIELD_COMPARE(m_id)
  FIELD_COMPARE_ARR(m_TYPE, 8)
  FIELD_COMPARE(m_eId)
  FIELD_COMPARE(m_FID)
  FIELD_COMPARE(m_CPMIN)
  FIELD_COMPARE(m_CPMAX)
  FIELD_COMPARE(m_C0)
  FIELD_COMPARE_ARR(m_CPNAME, 8)
  FIELD_COMPARE(m_domainId)
  return true;
}